﻿
@{
    ViewBag.Title = "VistaSentencias";
}

<h2>VistaSentencias</h2>

@{
    var theBalance = 4.99;
    if (theBalance == 0)
    {
        <p>You have a zero balance.</p>
    }
    else if (theBalance > 0 && theBalance <= 5)
    {
        <p>Your balance of $@theBalance is very low.</p>
    }
    else
    {
        <p>Your balance is: $@theBalance</p>
    }
}

<h2>Loop</h2>

@for (var i = 10; i < 21; i++)
{
    <p>Line #: @i</p>
}

<ul>
    @foreach (var myItem in Request.ServerVariables)
    {
        <li>@myItem</li>
    }
</ul>